package cn.java86.test3;

import cn.java86.dao.StudentDao;
import cn.java86.entity.Student;
import cn.java86.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

/**
 * @author oldliu
 * @since 1.0
 */
public class TestUpdateStudent {
    public static void main(String[] args) {
        SqlSession s= MybatisUtil.get();
        StudentDao dao=s.getMapper(StudentDao.class);
        Student student=new Student();
        student.setStuno(7L);
        student.setQQ("1593903333");
        student.setTelephone("13194034832");
        dao.update(student);
        s.commit();
        MybatisUtil.close(s);
    }
}
